﻿@model SchoolCommunicationSystem.Models.ViewGradesByClassModels
@if (Model.Subject != null && Model.Subject.Count() > 0)
{
    using (Html.BeginForm("ViewGradesByClass", "ViewGradesByClass", FormMethod.Post))
    { 
        @Html.HiddenFor(m => m._schoolYearID)
        @Html.HiddenFor(m => m.Term)
        @Html.HiddenFor(m => m.ClassInSchoolYear)
       <div class="col-sm-2">
        @Html.DropDownListFor(
            m => m.Subject,
            new SelectList(Model.Subject2, "subjectID", "subjectName"),
            "[Hãy chọn môn học]", new { @class = "form-control  input-sm" })
           </div>
        <input type="submit" value="Select" />
    }
}
else
{
    <div class="col-sm-2">
        <select class="form-control input-sm">
        </select>
    </div>
}